package com.rui.shangXueTang.linked;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : BookNode
 * @createTime : [2022/2/13 22:05]
 * @description : [双链表的节点]
 */

public class BookNode {

    public int id;

    public String name;

    public double price;

    //下一个节点
    public BookNode next;

    //上一个节点
    public BookNode pre;

    public BookNode() {
    }

    public BookNode(int id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public String toString() {
        return "BookNode{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
